﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRegistrarPedido.aspx.cs" Inherits="pryCallCenter.RegistrarPedido.frmRegistrarPedido" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 21px;
        }
        .style4
        {
            width: 89px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script language="javascript" type="text/javascript">
        // <![CDATA[

        var vCliente = '';

        function OnGridFocusedRowChanged() {
            // Query the server for the "EmployeeID" and "Notes" fields from the focused row 
            // The values will be returned to the OnGetRowValues() function
            dgvClientes.GetRowValues(dgvClientes.GetFocusedRowIndex(), 'CodigoPersona', OnGetRowValues);
        }
        // Value array contains "EmployeeID" and "Notes" field values returned from the server 
        function OnGetRowValues(values) {
            vCliente = values;
        }

        // ]]>
    </script>

    <div class="CssConten">

        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%">
            <PanelCollection>
                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
    
                    <div  class="CssHeader">

                        <div align="center" class="CssTitle">
                                REGISTRO DE PEDIDO
                        </div>

                        <div class="CssRigth">
                            <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="100%">
                                <PanelCollection>
                                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                        <table style="width:auto;">
                                            <tr>
                                                <td class="style1">Usuario:</td>                                
                                                <td>
                                                    <dx:ASPxTextBox ID="txtUsuario" runat="server" Width="170px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Fecha de Pedido:</td>                                
                                                <td>
                                                    <dx:ASPxDateEdit ID="dtpFecha" runat="server">
                                                    </dx:ASPxDateEdit>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>                
                            </dx:ASPxPanel>
                        </div>

                    </div>
                
                    <div class="CssCuerpo" >
        
                        <table class="style1">
                            <tr>
                                <td>
                                    Nro. de Pedido:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtNPedido" runat="server" Width="120px" ReadOnly="True">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    Cliente:</td>
                                <td>
                                    <div style="float:left;">
                                        <dx:ASPxTextBox ID="txtCliente" runat="server" Width="170px" Height="19px" 
                                            ClientInstanceName="txtCliente" ReadOnly="True">
                                        </dx:ASPxTextBox>
                                    </div>
                                    <div style="float:left;padding-left:10px;">
                                        <dx:ASPxButton ID="btnBuscar" runat="server" Text="Buscar" Width="50px" 
                                            AutoPostBack="False">
                                            <ClientSideEvents Click="function(s, e) {pcBuscarCliente.Show();}" />
                                        </dx:ASPxButton>
                                    </div>
                                </td>
                                <td>
                                    Titular de la Linea:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtTitular" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    NIF/NIE/CIF</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtNIF" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    No. Telefonico a aportar:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtNTelefonico" runat="server" style="margin-bottom: 2px" 
                                        Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Telefono:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtTelefono" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    Operador Actual:</td>
                                <td>
                                    <dx:ASPxComboBox ID="cboOperador" runat="server" Width="80px">
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Correo Electronico:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtCorreo" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    Dirección de Instalación:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtDirInstalacion" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Dirección:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtDireccion" runat="server" Width="235px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    Horario de Instalación:</td>
                                <td>
                                    <dx:ASPxComboBox ID="cboHorario" runat="server" SelectedIndex="0" 
                                        Width="50px">
                                        <Items>
                                            <dx:ListEditItem Selected="True" Text="AM" Value="0" />
                                            <dx:ListEditItem Text="PM" Value="1" />
                                        </Items>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    No. Cuenta Bancaria:</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtNCuenta" runat="server" Width="170px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
        
                        <br />
        
                        <table width="100%">
                            <tr>
                                <td>
                                    <b>Producto / Servicio Contratado</b>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">

                                    <table width="50%">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnInsertar" runat="server" Text="Insertar" Width="100%" 
                                                    OnClick="btnInsertar_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnSeleccionarProd" runat="server" Text="Seleccionar Producto" 
                                                    Width="100%" AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {if(dgvDetalle.GetFocusedRowIndex() >= 0){pcBuscarProducto.Show();}}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnSeleccionarPack" runat="server" Text="Seleccionar Pack" 
                                                    Width="100%" AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {if(dgvDetalle.GetFocusedRowIndex() >= 0){pcBuscarProducto.Show();}}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnEliminar" runat="server" Text="Eliminar" Width="100%" 
                                                    AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {pcConfirmarDel.Show();}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    <dx:ASPxGridView ID="dgvDetalle" runat="server" AutoGenerateColumns="False" 
                                        Width="100%" KeyFieldName="Codigo" ClientInstanceName="dgvDetalle">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Código" VisibleIndex="0" Width="90px" 
                                                FieldName="Codigo">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Producto / Pack" VisibleIndex="1" 
                                                Width="500px" FieldName="Descripcion">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Cantidad" VisibleIndex="2" Width="80px" 
                                                FieldName="Cantidad">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Penalización" VisibleIndex="3" 
                                                Width="100px" FieldName="Penalidad">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Precio" VisibleIndex="4" Width="80px" 
                                                FieldName="PrecioTotal">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" />
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="width:95px; float:right;">
                                        <dx:ASPxTextBox ID="txtTotalPrecio" runat="server" Width="100%" 
                                            HorizontalAlign="Right">
                                        </dx:ASPxTextBox>
                                    </div>

                                    <div style="width:110px; float:right;padding-right:10px;" align="right">
                                        Total:</div>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" Width="150px" 
                                        AutoPostBack="False">
                                        <ClientSideEvents Click="function(s, e) {pcConfirmar.Show();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                
                    </div>

                    
                    <div id="PopPup">
                        <dx:ASPxPopupControl ID="pcMensaje" runat="server" 
                            ClientInstanceName="pcMensaje" HeaderText="Mensaje" 
                            Width="350px" CloseAction="CloseButton" 
                            AllowDragging="True" EnableTheming="True" Modal="True" 
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                            AllowResize="True" DragElement="Window">
                            
                            <HeaderStyle>
                            <Paddings PaddingLeft="30px" />
                            <BackgroundImage HorizontalPosition="10px" ImageUrl="~/img/iconError.png" 
                                Repeat="NoRepeat" />
                            </HeaderStyle>
                            
                            <ContentCollection>
                                <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                                    <table class="style1">
                                        <tr>
                                            <td align="center">
                                                <dx:ASPxLabel ID="lblMensaje" runat="server">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">                                                
                                                <div style="padding:15px 0 0 0;" >
                                                    <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" Width="100px" 
                                                        OnClick="btnAceptar_Click" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {pcMensaje.Hide();}" />
                                                    </dx:ASPxButton>
                                                </div>                                                        
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                            
                        </dx:ASPxPopupControl>
                        <dx:ASPxPopupControl ID="pcConfirmar" runat="server" AllowDragging="True" 
                            AllowResize="True" ClientInstanceName="pcConfirmar" CloseAction="CloseButton" 
                            DragElement="Window" EnableTheming="True" HeaderText="Grabar" Modal="True" 
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                            Width="350px">
                            <HeaderStyle>
                            <Paddings PaddingLeft="30px" />
                            <BackgroundImage HorizontalPosition="10px" ImageUrl="~/img/iconError.png" 
                                Repeat="NoRepeat" />
                            </HeaderStyle>
                            <ContentCollection>
                                <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table class="style1">
                                        <tr>
                                            <td align="center">                                                
                                                <p>Esta Seguro que desea grabar?</p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <div style="width:205px;">
                                                    <div style="float:left;padding:15px 2px 0 0;">
                                                        <dx:ASPxButton ID="btnOK" runat="server"
                                                            Text="Aceptar" Width="100px" AutoPostBack="False" OnClick="btnOK_Click">
                                                            <ClientSideEvents Click="function(s, e) {pcConfirmar.Hide();}" />
                                                        </dx:ASPxButton>
                                                    </div>
                                                    <div style="float:left;padding:15px 0 0 3px;">
                                                        <dx:ASPxButton ID="btnCancel" runat="server"
                                                            Text="Cancelar" Width="100px" AutoPostBack="False">
                                                            <ClientSideEvents Click="function(s, e) {pcConfirmar.Hide();}" />
                                                        </dx:ASPxButton>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                        </dx:ASPxPopupControl>
                        <dx:ASPxPopupControl ID="pcConfirmarDel" runat="server" AllowDragging="True" 
                            AllowResize="True" ClientInstanceName="pcConfirmarDel" CloseAction="CloseButton" 
                            DragElement="Window" EnableTheming="True" HeaderText="Eliminar" Modal="True" 
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                            Width="350px">
                            <HeaderStyle>
                            <Paddings PaddingLeft="30px" />
                            <BackgroundImage HorizontalPosition="10px" ImageUrl="~/img/iconError.png" 
                                Repeat="NoRepeat" />
                            </HeaderStyle>
                            <ContentCollection>
                                <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table class="style1">
                                        <tr>
                                            <td align="center">
                                                <p>Esta Seguro que desea eliminar?</p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <div style="width:205px;">
                                                    <div style="float:left;padding:15px 2px 0 0;">
                                                        <dx:ASPxButton ID="btnOKEliminar" runat="server" AutoPostBack="False" Text="Aceptar" 
                                                            Width="100px" OnClick="btnOKEliminar_Click">
                                                            <ClientSideEvents Click="function(s, e) {pcConfirmarDel.Hide();}" />
                                                        </dx:ASPxButton>
                                                    </div>
                                                    <div style="float:left;padding:15px 0 0 3px;">
                                                        <dx:ASPxButton ID="btnCancelEliminar" runat="server" AutoPostBack="False" 
                                                            Text="Cancelar" Width="100px">
                                                            <ClientSideEvents Click="function(s, e) {pcConfirmarDel.Hide();}" />
                                                        </dx:ASPxButton>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                        </dx:ASPxPopupControl>
                        <dx:ASPxPopupControl ID="pcBuscarCliente" runat="server" 
                            ClientInstanceName="pcBuscarCliente" HeaderText="Buscar Cliente" 
                            Width="800px" CloseAction="CloseButton" 
                            AllowDragging="True" EnableTheming="True" Modal="True" 
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
                            
                            <ContentCollection>
                                <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table class="style1">
                                        <tr>
                                            <td>
                                                <dx:ASPxGridView ID="dgvClientes" runat="server" Width="100%" 
                                                    KeyFieldName="CodigoPersona"
                                                     ClientInstanceName="dgvClientes" 
                                                    AutoGenerateColumns="False">
                                                    <Columns>
                                                        <dx:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0">
                                                            <ClearFilterButton Visible="True">
                                                            </ClearFilterButton>
                                                        </dx:GridViewCommandColumn>
                                                        <dx:GridViewDataTextColumn Caption="CODIGO" FieldName="CodigoPersona" 
                                                             VisibleIndex="1">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="APE. PATERNO" FieldName="ApellidoPaterno" 
                                                             VisibleIndex="2">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="APE. MATERNO" FieldName="ApellidoMaterno" 
                                                             VisibleIndex="3">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="NOMBRE" FieldName="Nombres" 
                                                             VisibleIndex="4">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="DOCUMENTO" FieldName="NumeroDocumento" 
                                                             VisibleIndex="5">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="DIRECCION" FieldName="Direccion" 
                                                             VisibleIndex="8">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="TELEFONO" FieldName="Telefono" 
                                                             VisibleIndex="7">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="ESTADO" FieldName="Estado" 
                                                             VisibleIndex="9">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="CUENTA" FieldName="Cliente.CuentaBancaria" 
                                                            ShowInCustomizationForm="True" VisibleIndex="6">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" />
                                                    <Settings ShowFilterRow="True" />
                                                </dx:ASPxGridView>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div style="float:left;padding-left:10px" >
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" Width="100px" 
                                                        OnClick="btnAceptar_Click">
                                                        <ClientSideEvents Click="function(s, e) {txtCliente.SetText(vCliente);pcBuscarCliente.Hide();}" />
                                                    </dx:ASPxButton>
                                                </div>
                                                <div style="float:left;padding-left:10px" >
                                                    <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar" Width="100px" 
                                                        AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {pcBuscarCliente.Hide();}" />
                                                    </dx:ASPxButton>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                            
                        </dx:ASPxPopupControl>

                        <dx:ASPxPopupControl ID="pcBuscarProducto" runat="server" 
                            ClientInstanceName="pcBuscarProducto" HeaderText="Seleccionar Producto" 
                            Width="900px" CloseAction="CloseButton" 
                            AllowDragging="True" EnableTheming="True" Modal="True" 
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
                            
                            <ContentCollection>
                                <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                    <table class="style1">
                                        <tr>
                                            <td>
                                                <div style="float:left;width:55%;">
                                                    <dx:ASPxGridView ID="dgvProducto" runat="server" Width="100%" 
                                                        KeyFieldName="CodigoProducto"
                                                         ClientInstanceName="dgvClientes" 
                                                        AutoGenerateColumns="False">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0" 
                                                                Width="20px">
                                                                <ClearFilterButton Visible="True">
                                                                </ClearFilterButton>
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="CODIGO" FieldName="CodigoProducto" 
                                                                 VisibleIndex="1">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="DESCRIPCIÓN" FieldName="Descripcion" 
                                                                 VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="PRECIO" FieldName="PrecioVenta" 
                                                                 VisibleIndex="3">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="COMISION" FieldName="ComisionEmpresa" 
                                                                 VisibleIndex="4">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="ESTADO" FieldName="Estado" 
                                                                 VisibleIndex="5">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" />
                                                        <Settings ShowFilterRow="True" />
                                                    </dx:ASPxGridView>
                                                </div>
                                                <div style="float:right;width:43%;">
                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" HeaderText="Editar" 
                                                        Width="100%">
                                                        <PanelCollection>
                                                            <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                                                <table class="style1">
                                                                    <tr>
                                                                        <td class="style4">
                                                                            Cantidad:</td>
                                                                        <td>
                                                                            <dx:ASPxTextBox ID="txtCantidad" runat="server" Width="90%" 
                                                                                ClientInstanceName="txtCantidad" Text="0">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style4">
                                                                            Penalidad:</td>
                                                                        <td>
                                                                            <dx:ASPxTextBox ID="txtPenalidad" runat="server" Width="90%" 
                                                                                ClientInstanceName="txtPenalidad" Text="0">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PanelContent>
                                                        </PanelCollection>
                                                    </dx:ASPxRoundPanel>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                
                                                
                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <div style="float:left;padding-left:10px" >
                                                                <dx:ASPxButton ID="btnAceptarProducto" runat="server" Text="Aceptar" 
                                                                    Width="100px" OnClick="btnAceptarProducto_Click">
                                                                    <ClientSideEvents Click="function(s, e) {if(txtCantidad.GetText() != '' || txtPenalidad.GetText() != ''){pcBuscarProducto.Hide();}}" />
                                                                </dx:ASPxButton>
                                                            </div>
                                                            <div style="float:left;padding-left:10px" >
                                                                <dx:ASPxButton ID="btnCancelarProducto" runat="server" Text="Cancelar" Width="100px" 
                                                                    AutoPostBack="False">
                                                                    <ClientSideEvents Click="function(s, e) {pcBuscarProducto.Hide();}" />
                                                                </dx:ASPxButton>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>                                        
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                            
                        </dx:ASPxPopupControl>

                    </div>

                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>

    </div>
            
</asp:Content>